Optimal. Leaf size=228 \[ \frac{3 (a-b) \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right ),\frac{a+b}{a-b}\right )}{f}-\frac{\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}-\frac{3 (a-b) \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.240174, antiderivative size = 228, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {3875, 3829, 3832, 4004} \[ -\frac{\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac{3 (a-b) \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{f}-\frac{3 (a-b) \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3875
Rule 3829
Rule 3832
Rule 4004
Rubi steps
\begin{align*} \int \csc ^2(e+f x) (a+b \sec (e+f x))^{3/2} \, dx &=-\frac{\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac{1}{2} (3 b) \int \sec (e+f x) \sqrt{a+b \sec (e+f x)} \, dx\\ &=-\frac{\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac{1}{2} (3 (a-b) b) \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx+\frac{1}{2} \left (3 b^2\right ) \int \frac{\sec (e+f x) (1+\sec (e+f x))}{\sqrt{a+b \sec (e+f x)}} \, dx\\ &=-\frac{3 (a-b) \sqrt{a+b} \cot (e+f x) E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{f}+\frac{3 (a-b) \sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{f}-\frac{\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}\\ \end{align*}
Mathematica [A] time = 11.1196, size = 276, normalized size = 1.21 \[ \frac{3 b (a+b \sec (e+f x))^{3/2} \left (-\frac{(a+b) \sqrt{\frac{a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \left (E\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right )|\frac{a-b}{a+b}\right )-\text{EllipticF}\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right ),\frac{a-b}{a+b}\right )\right )}{\sqrt{\frac{\cos (e+f x)}{\cos (e+f x)+1}}}-\tan \left (\frac{1}{2} (e+f x)\right ) (a \cos (e+f x)+b)\right )}{f \sqrt{\sec ^2\left (\frac{1}{2} (e+f x)\right )} \sec ^{\frac{3}{2}}(e+f x) \sqrt{\cos ^2\left (\frac{1}{2} (e+f x)\right ) \sec (e+f x)} (a \cos (e+f x)+b)^2}+\frac{\cos (e+f x) (a+b \sec (e+f x))^{3/2} (\csc (e+f x) (-a \cos (e+f x)-b)+3 b \sin (e+f x))}{f (a \cos (e+f x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.333, size = 850, normalized size = 3.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sec \left (f x + e\right ) + a\right )}^{\frac{3}{2}} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b \csc \left (f x + e\right )^{2} \sec \left (f x + e\right ) + a \csc \left (f x + e\right )^{2}\right )} \sqrt{b \sec \left (f x + e\right ) + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sec \left (f x + e\right ) + a\right )}^{\frac{3}{2}} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]